﻿@model IEnumerable<DancingSite.Models.Dance>

@{
    ViewBag.Title = "Home Page";
}

<section class="welcome-message">
    <div class="content-wrapper">
        <hgroup class="title">
            <h2>Welcome to DanceFinder</h2>
        </hgroup>
        <p>The DanceFinder website can help you find nearby dance classes, parties and congresses.</p>
        <p>Interested in learning to dance or want to put your moves to use at a party? Search our list of events.</p>
        <p>Want to promote your class or event for free on DanceFinder? Register Now.</p>
    </div>
</section>

<section class="event-today">
    <div class="content-wrapper">
        <hgroup class="title">
            <h2>Happening Today...</h2>
        </hgroup>

        @foreach (var item in Model) {
            <hgroup class="title">
                <h3>@Html.DisplayFor(modelItem => item.Title)</h3>
            </hgroup>
            <p>
                @Html.DisplayFor(modelItem => item.Description)
                <br />
                @Html.DisplayFor(modelItem => item.Location.TownCity)
            </p>
            <br />
        }
    </div>
</section>

<section class="recently-added">
    <div class ="content-wrapper">
        <hgroup class="title">
            <h2>Recently Added Events...</h2>
            <h3>@Html.DisplayFor(modelItem => Model.ElementAt(0).Title)</h3>
        </hgroup>
        <p>
            @Html.DisplayFor(modelItem => Model.ElementAt(0).Description)
            <br />
            @Html.DisplayFor(modelItem => Model.ElementAt(0).Location.TownCity)
            <br />
            @Html.DisplayFor(modelItem => Model.ElementAt(0).Schedules.ElementAt(0).StartTime)
        </p>
    </div>
</section>

